//
//  CYCSRecordModel.m
//  CreditAddressBook
//
//  Created by mosu on 2016/9/28.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "CYCSRecordModel.h"

@implementation CYCSRecordModel

-(instancetype)initWithDictionary:(NSDictionary *)dic{
     self = [super init];
     if(nil == self){
          return nil;
     }
     
     NSString *str1 = [dic objectForKey:@"createTime"];
     NSDate *date1 = [NSDate dateWithTimeIntervalSince1970:str1.longLongValue/1000];
     NSDateFormatter *dateFormatter1 = [[NSDateFormatter alloc]init];
     [dateFormatter1 setDateFormat:@"yyyy年MM月dd日"];
     self.createTime = [dateFormatter1 stringFromDate:date1];
     
     self.content = [dic objectForKey:@"content"];
     
     return self;
     
}

@end
